package com.zkld.frame.mapper;

import com.zkld.frame.entitys.Graphical;
import com.zkld.frame.example.GraphicalExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface GraphicalMapper {

    long countByExample(GraphicalExample example);

    int deleteByExample(GraphicalExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Graphical record);

    int insertSelective(Graphical record);

    List<Graphical> selectByExample(GraphicalExample example);

    Graphical selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Graphical record, @Param("example") GraphicalExample example);

    int updateByExample(@Param("record") Graphical record, @Param("example") GraphicalExample example);

    int updateByPrimaryKeySelective(Graphical record);

    int updateByPrimaryKey(Graphical record);

    void updateNodesInfoByPrimaryKey(@Param("id") Integer id, @Param("nodes") String nodes);
}